import {defineStore} from "pinia";
import {ref} from 'vue'

export const UserNameStore = defineStore('name',()=>{
    const name = ref('')

    const setname = (newname:string)=>{
        name.value = newname
    }

    const renew = ()=>{
        name.value = ' '
    }

    return {name,setname,renew}
})